package com.bitejiuyeke.bitemstemplateservice;


import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Component;

/**
 * 启动类
 */

@Slf4j
@SpringBootApplication
public class BiteMstemplateServiceApplication {





    /**
     * 主函数
     * @param args 入参
     */
    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(BiteMstemplateServiceApplication.class, args);


//        System.out.println("Nacos地址: " + System.getenv("NACOS_ADDR"));  // 检查环境变量
//        System.out.println("Nacos检查: " + System.getenv("RUN_ENV"));  // 检查环境变量
//
//        nacosServerAddr = context.getEnvironment().getProperty("spring.cloud.nacos.config.server-addr");
//        System.out.println("Nacos Address: " + nacosServerAddr);


    }

}
